﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SacrificeClanAdd.Aspx.cs" Inherits="SacrificeClanAdd" %>
<%@ Register TagPrefix="skm" Namespace="ActionlessForm" Assembly="ActionlessForm" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>
        <%=Base_CurrPath%></title>

    <script src="Script/public.js" type="text/javascript"></script>

    <script>
        function textLimitCheck(thisArea, maxLength) {
            if (thisArea.value.length > maxLength) {
                alert(maxLength + ' 个字限制. \r超出的将自动去除.');
                thisArea.value = thisArea.value.substring(0, maxLength);
                thisArea.focus();
            }
            /*回写span的值，当前填写文字的数量*/
            messageCount.innerText = thisArea.value.length;
        }
    </script>

    <style type="text/css">
      <!--
        
        body,div
        {
            margin: 0px;
            background-image: url(Images/bg.jpg);
            color:#000000;
        }
        table
        {
            font-size: 12px;
        }
        div
        {
            font-family: Arial;
            font-size: 9pt;
            color: #000000;
            text-decoration: none;
        }
        A
        {
            text-decoration: none;
        }
        A:link
        {
            color: #000000;
        }
        A:visited
        {
            color: #000000;
        }
        A:hover
        {
            color: #CF2120;
        }
        A:active
        {
            color: #000000;
        }
        #menu a:link
        {
            font-size: 10pt;
            font-weight: bold;
            color: #000000;
            text-decoration: none;
        }
        #menu a:visited
        {
            font-size: 10pt;
            font-weight: bold;
            color: #000000;
            text-decoration: none;
        }
        #menu a:hover
        {
            font-size: 10pt;
            font-weight: bold;
            color: #000000;
            text-decoration: underline;
        }
       //-->
        
        </style>
</head>
<body>
   <%-- <form id="form1" runat="server"> --%>
    <%--  --%>
    <skm:Form id="form1" runat="server"> 

    
   
    
    <table width="1003" border="0" cellspacing="0" cellpadding="3">
        <tr>
            <td>
                <div id="menu" style="color: #000000; font-size: 10pt; margin: 50px 0 0 0px; width: 100%;
                    float: left; text-align: center">
                    <a href="">人物介绍</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="" target="_blank">纪念文选</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a
                        href="" target="_blank">历史相册</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="" target="_blank">人物事迹</a>&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a
                            href="" target="_blank">人物作品</a>&nbsp;&nbsp;|&nbsp;&nbsp; <a href="" target="_blank">
                                纪念留言</a>&nbsp;&nbsp;| <a href="">返回首页</a></div>
            </td>
        </tr>
        <tr>
            <td>
                <table width="60%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolordark="#FFFFFF"
                    bordercolorlight="#CCCCCC">
                    <tr>
                        <td>
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td>
                                        <table width="100%" border="0" cellspacing="0" cellpadding="3">
                                            <tr>
                                                <td align="center">
                                                    <asp:DataList ID="DataList1" runat="server" RepeatColumns="4" RepeatDirection="Horizontal"
                                                        Width="100%" onitemdatabound="DataList1_ItemDataBound">
                                                        <ItemTemplate>
                                                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                                <tr>
                                                                    <td align="center" height="128" valign="bottom">
                                                                        <img src="<%#Eval("photoUrl") %>" onload="javascript:DrawImage(this,128,128);" >
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td align="center">
                                                                        <input type="radio"  checked="checked" id="SelectId" name="SelectId" value="<%#Eval("id") %>" ><%#Eval("PhotoName")%>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </ItemTemplate>
                                                        <FooterTemplate>
                                                            <asp:Panel ID="Panel3" runat="server" Visible="false">
                                                              <center>暂时没有祭祀信息列表</center> 
                                                               </asp:Panel>
                                                        </FooterTemplate>
                                                    </asp:DataList>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="center" ><webdiyer:AspNetPager ID="AspNetPager1" runat="server" PageSize="20"
                                                        CustomInfoHTML="共%PageCount%页，当前为第%CurrentPageIndex%页，每页%PageSize%条" 
                                                        FirstPageText="首页" LastPageText="尾页" NextPageText="下一页" PrevPageText="上一页" 
                                                        ShowCustomInfoSection="Left"
                                                        NumericButtonTextFormatString="[{0}]" 
                                                        onpagechanged="AspNetPager1_PageChanged">
                                                    </webdiyer:AspNetPager>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td>
                <table width="60%" border="1" align="center" cellpadding="5" cellspacing="0" bordercolordark="#FFFFFF"
                    bordercolorlight="#CCCCCC">
                    <tr>
                        <td align="center">
                            <asp:Panel ID="Panel1" runat="server" Visible="false">
                                <table width="95%" border="0" cellspacing="0" cellpadding="3" align="left" style="color: #000000">
                                    <tr>
                                        <td width="13%" align="right">
                                            用户名：</td>
                                        <td width="87%" align="left">
                                            <asp:TextBox ID="UserName" runat="server"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="13%" align="right">
                                            真实姓名：
                                        </td>
                                        <td width="87%" align="left">
                                           <asp:TextBox ID="Txt_OtherName" runat="server"></asp:TextBox>*
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                                ControlToValidate="Txt_OtherName" Display="Dynamic" ErrorMessage="真实姓名不能为空"></asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right">
                                            留言内容：
                                        </td>
                                        <td width="87%" align="left">
                                             <asp:TextBox ID="Content" Width="450" rows="6" TextMode="MultiLine" onkeyup="textLimitCheck(this,200);"  runat="server"></asp:TextBox>
                                            <br>
                                            限 200 个字符 已输入 <font color="#CC0000"><span id="messageCount">0</span></font> 个字<asp:RequiredFieldValidator 
                                                 ID="RequiredFieldValidator2" runat="server" ControlToValidate="Content" 
                                                 ErrorMessage="留言内容不能为空"></asp:RequiredFieldValidator>
&nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td colspan="2" align="center">
                                        <span onclick="if (!ValidatorOnSubmit()){return false;}">
                                        <asp:Button ID="Button1" runat="server" Text="确定" onclick="Button1_Click" /></span>
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>

                            <asp:Panel ID="Panel2" runat="server" Visible="true">
                                <table>
                                    <tr>
                                        <td>
                                            <center>
                                                <a href="<%=configInfo.InstallDir %>users/Login.Aspx?ReUrl=<%=Server.UrlPathEncode(""+configInfo.InstallDir+"SacrificeClanAdd-"+classid+"-"+id+".Aspx")%>">
                                                    <span style="font-size: 14px; color: Red;">您必须先登录才能够进行祭拜</span></a></center>
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                            
                            
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
   <%--   </form>--%>
     </skm:Form>
 
</body>
</html>
